package com.openlogic.common.plugins.db.excel.param;

import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;

import com.openlogic.common.plugins.db.api.datasource.AbstractDataSourceProcessor;
import com.openlogic.common.plugins.db.api.datasource.DataSourceProcessor;
import com.openlogic.common.plugins.db.api.dto.BaseDataSourceParamDto;
import com.openlogic.common.plugins.db.api.utils.JSONUtils;
import com.openlogic.common.plugins.spi.enums.DbType;
import com.openlogic.datasource.api.param.ConnectionParam;

/**
 * @ClassName: ExcelDataSourceProcessor
 * @Description: Excel数据源处理器
 * @author weiyongpeng
 * @date 2024年11月26日 上午9:37:30
 */
public class ExcelDataSourceProcessor extends AbstractDataSourceProcessor {

	@Override
	public ConnectionParam createConnectionParams(BaseDataSourceParamDto datasourceParam) {
		return null;
	}

	@Override
	public BaseDataSourceParamDto castDatasourceParamDTO(String paramJson) {
		return JSONUtils.parseObject(paramJson, ExcelDataSourceParamDTO.class);
	}

	@Override
	public String getDatasourceDriver() {
		return null;
	}

	@Override
	public String getValidationQuery() {
		return null;
	}

	@Override
	public String getJdbcUrl(ConnectionParam connectionParam) {
		return null;
	}

	@Override
	public Connection getConnection(ConnectionParam connectionParam)
			throws ClassNotFoundException, SQLException, IOException {
		return null;
	}

	@Override
	public DbType getDbType() {
		return DbType.EXCEL;
	}

	@Override
	public DataSourceProcessor create() {
		return new ExcelDataSourceProcessor();
	}

	@Override
	public String columns(String dbName, String tableName) {
		return null;
	}

	@Override
	public String tables(String dbName) {
		return null;
	}

	@Override
	public String parsePageSql(String orignSql, Integer page, Integer pageSize) {
		return null;
	}

	@Override
	public String parseCountSql(String tableName) {
		return null;
	}

}
